<?php
/**
 * Author: liqinglin
 * CreateTime: 2019-1-21 10:23
 * description:
 */

namespace app\admin\controller;

use think\Session;

class Base extends \think\Controller
{

    public function __construct()
    {
        $this->request = \think\Request::instance();
        parent::__construct();
        if (empty(Session::get('admin_name'))) {
            $this->error('当前用户未登录', '/admin/login/login');
        }
    }
}